//
//  TwoViewController.m
//  JHSwitchScreenDemo
//
//  Created by lishi on 2018/8/6.
//  Copyright © 2018年 JiehaoWu. All rights reserved.
//

#import "TwoViewController.h"

// Controller
#import "SecondViewController.h"

@interface TwoViewController ()

@end

@implementation TwoViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    self.view.backgroundColor = [UIColor orangeColor];
    
    UIBarButtonItem *rightItem = [[UIBarButtonItem alloc] initWithTitle:@"跳转" style:UIBarButtonItemStylePlain target:self action:@selector(push)];
    self.navigationItem.rightBarButtonItem = rightItem;
}

- (void)push {
    [self.navigationController pushViewController:[SecondViewController new] animated:YES];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

// 旋转不重写上面方法

@end
